package club.cearnach.api.service;

import club.cearnach.entity.MovieType;
import club.cearnach.api.exception.MovieTypeException;
import club.cearnach.api.form.PageBean;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author 阮胜
 * @date 2018/5/12 13:43
 */
public interface IMovieTypeService {

    Page<MovieType> findAll(Pageable pageable);

    List<MovieType> findAll();

    MovieType save(MovieType movieType) throws MovieTypeException;


    MovieType findById(Integer id) throws MovieTypeException;

    void delete(Integer id) throws MovieTypeException;

    Page<MovieType> findAllOrderByCreateDate(PageBean pageBean);

    void deleteIn(Integer[] idArr);

    long count();

    boolean isExist(Integer id, String typeName);

    boolean isExist(MovieType movieType);

}
